<div class="span10" id="_content" style="background: #fff;margin-left: 2px;">
<table width="100%" style="margin: 0;padding: 0;">
    <tr>
        <td class="hzbar"></td>
        <td style="padding: 10px 15px;">
<?php echo $this->session->flashdata('_message'); ?>

<!-- Modal Form -->
<?php echo $action; ?>
<?php echo anchor('administrator/setting/language/create','<i class="icon-plus"></i>Add new language','class="btn"'); ?>
<div style="margin-bottom: 15px;"></div>
<?php
if(!empty($language)){
?>
    <table class="table table-striped table-bordered table-condensed">
        <?php 
            foreach($language as $lang):
        ?>
        <tr>
            <td><?php echo $lang->lang_id ?></td>
            <td><?php echo $lang->lang_name ?></td>
            <td><?php echo $lang->lang_code ?></td>
            <td align="center"><?php echo $lang->actived==1?'<a href=javascript:void()><i class=icon-ok-circle></i></a>':'<a href=javascript:void()><i class=icon-ban-circle></i></a>' ?></td>
            <td  align="center"><?php echo $lang->is_default==1?'<a href=javascript:void() title="Default language"><i class=icon-star></i></a>':'<a href=javascript:void()><i class=icon-star-empty></i></a>' ?></td>
            <td>
            <?php echo anchor('administrator/setting/language/edit/'.$lang->lang_id,'<i class="icon-edit"></i> Edit', 'class="btn action"') ?>
            </td>
            <td>
            <?php echo anchor('administrator/setting/language/delete/'.$lang->lang_id,'<i class="icon-remove"></i> Delete', 'class="btn action" onclick="return confirm(\'Do you want to delete this language?\')"') ?>
            </td>
        </tr>
        <?php endforeach; ?>
    </table>
<?php
}else{
    echo '<div class="alert alert-info"><h4 class="alert-heading">Thông báo!</h4>Chưa có ngôn ngữ nào nào...</div>';
}
?></td></tr></table>
</div>


